package proto;

public enum Direction {
    LEFT, RIGHT, UP, DOWN;

    public static Direction GetOpposite(Direction dir){
        switch(dir){
            case LEFT: return RIGHT;
            case RIGHT: return LEFT;
            case UP: return DOWN;
            case DOWN: return UP;
            default: return null;
        }
    }

}